package com.example.design.ddd.practice.domain.orgmng.repository;

import com.example.design.ddd.practice.domain.orgmng.entity.OrgType;
import com.example.design.ddd.practice.domain.orgmng.entity.OrgTypeStatus;

import java.util.Optional;

/**
 * @Description
 * @Author liuzhihui
 * @Date 2024/5/31
 */
public interface OrgTypeRepository {

    Boolean existsByCodeAndStatus(Long tenantId, String orgTypeCode, OrgTypeStatus orgTypeStatus);

    Optional<OrgType> findByCodeAndStatus(Long tenantId, String orgTypeCode, OrgTypeStatus orgTypeStatus);
}
